import { defineStore } from 'pinia';

export const appColorStore = defineStore({
    id: 'appColor',
    state() {
        return {
            appColor: '#2d8cf0',
        }
    },
    actions: {
        changeAppColor(color) {
            this.appColor = color;
        }
    },
    persist: {
        enabled: true,
        strategies: [
            {
                key: 'appColor',
                storage: localStorage,
            },
        ],
    }
});